//
//  __vars.swift
//  eemall
//
//  Created by zhuxietong on 2018/8/27.
//  Copyright © 2018年 zhuxietong. All rights reserved.
//

import Foundation
import soapp
var __logos = [
    "https://ss1.bdstatic.com/70cFuXSh_Q1YnxGkpoWK1HF6hhy/it/u=3547592982,1978197711&fm=200&gp=0.jpg",
    "https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=1443299318,121744606&fm=27&gp=0.jpg",
    "https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=1017980852,3420383746&fm=27&gp=0.jpg",
    "https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=1252256153,3419487072&fm=27&gp=0.jpg",
    "https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=1895838255,3248645471&fm=27&gp=0.jpg",
    "https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=871295046,2601159057&fm=27&gp=0.jpg",
    "https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=3255919467,4117243677&fm=27&gp=0.jpg"
]

var __goods = [
    "http://imgsrc.baidu.com/image/c0%3Dpixel_huitu%2C0%2C0%2C294%2C40/sign=492a5f260c0828387c00d454d1e1cc6d/42166d224f4a20a42876c8fe9b529822720ed09b.jpg",
    "http://img008.hc360.cn/m2/M02/5B/8E/wKhQcVQ7dCOEeWVwAAAAAC57UX8062.jpg",
    "http://a.vpimg4.com/upload/merchandise/pdc/921/179/8390563877277179921/0/6921552600606-110_1.jpg",
    "http://img14.360buyimg.com/n12/jfs/t298/184/444026135/484797/3366743/54116596Nf1de7844.jpg",
    "http://imgsrc.baidu.com/image/c0%3Dshijue1%2C0%2C0%2C294%2C40/sign=b248fb145382b2b7b392318759c4a19a/d1a20cf431adcbef65051d16a6af2edda3cc9fe8.jpg",
    "http://img009.hc360.cn/g8/M02/09/41/wKhQt1O6FM2EBELmAAAAAKDGvRI169.jpg",
    "http://imgsrc.baidu.com/image/c0%3Dshijue1%2C0%2C0%2C294%2C40/sign=8b0f0137454a20a425133484f83bf257/472309f790529822ba1760e6ddca7bcb0a46d4eb.jpg",
    "http://img12.360buyimg.com/imgzone/jfs/t1150/67/1491868118/427177/3fd84657/572d9c3cN7ca185c3.jpg",
]

var __goodsNames = [
    "帅帅的高跟鞋",
    "白领正装",
    "秋末围巾（商务款）",
    "阿迪达斯新款运动鞋",
    "夏日泳装情侣款",
    "冬款妈妈装",
    "中学青春系列",
]
var __seller = [
    "品牌名称1",
    "品牌名称2",
    "品牌名称3",
    "品牌名称4",
    "品牌名称5",
    "品牌名称6",
    "品牌名称7"
]

public typealias _Tool = ShoppingTool
public class ShoppingTool{
    static func price1(_ priceString:String) -> NSMutableAttributedString {
        let cops = priceString.components(separatedBy: "~")
        if cops.count > 1{
            let price = cops[0].price_display
            return "\(price)".ui.bfont14.color(hex: AppTheme.main_hex).astring + " 起".ui.bfont12.astring
        }
        else{
            return "\(priceString.price_display)".ui.bfont14.color(hex: AppTheme.main_hex).astring
        }
    }
}
